package com.cheng.admin.controller;


import com.cheng.admin.dao.CouponUserMapper;
import com.cheng.admin.model.CouponUser;
import com.cheng.common.domain.BaseSearchVO;
import com.cheng.common.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 *
 * <p>
 * 优惠券领取表 前端控制器
 * </p>
 * @deprecated 这个目前不用看
 * @author 起凡
 * @since 2022-01-17
 */
@RestController
@RequestMapping("/coupon-user")
public class CouponUserController {
    @Autowired
    CouponUserMapper couponUserMapper;

    @GetMapping("list")
    public R<List<CouponUser>> list(BaseSearchVO baseSearchVO) {
        return R.ok(couponUserMapper.listCouponUser(baseSearchVO));
    }
}

